<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/vue.js"></script>
</head>
<body>

    <div id="app">
        <input type="text" @keyup.enter="mykeyupfn">
    </div>

</body>
<script>
    new Vue({
        el:"#app",
        data:{
            mykeyupfn:function () {
                console.log("hello vue")
            }
        }

    })
</script>
</html>